import { ip, ipv6, mac } from 'address';

// 同步获取ip

console.log('ipv4地址：',ip());

console.log("ipv6地址---》",ipv6());

console.log(ip('lo'));

console.log('1');
mac(function (err, addr) {
  console.log('异步查询mac地址');
  console.log(addr); // '78:ca:39:b0:e6:7d'
});
console.log('2');